const Koa = require('koa')
const app = new Koa()

const main = (ctx) =>{
    console.log(ctx.request);
}

app.use(main)

app.listen(3000,() =>{
    console.log('listening on 3000');
})